//
//  ClientModifyAPI.m
//  StarOrangeStaff
//
//  Created by lshenrong on 2020/7/7.
//  Copyright © 2020 lshenrong. All rights reserved.
//

#import "ClientModifyAPI.h"

@interface ClientModifyAPI()

@property (nonatomic,copy) NSString *clientWayId;
@property (nonatomic,copy) NSString *clientWayName;
@property (nonatomic,copy) NSString *clientWayType;
@property (nonatomic,copy) NSString *contactPerson;
@property (nonatomic,assign) NSInteger contactNumber;
@property (nonatomic,copy) NSString *contactAddress;
@property (nonatomic,copy) NSString *invoice;
@property (nonatomic,copy) NSString *taxpayerId;

@end


@implementation ClientModifyAPI

- (instancetype)initWithClientWayId:(NSString *)clientWayId {
    if (self = [super init]) {
        self.clientWayId = clientWayId;
        [self testDataAPI];
       
    }
    return self;
}

- (void)testDataAPI {
    self.clientWayName = @"test";
    self.clientWayType = @"1";
    self.contactPerson = @"test";
    self.contactNumber = 18520701023;
    self.contactAddress = @"广州";
    self.invoice = @"发票抬头";
    self.taxpayerId = @"123456";
    self.clientWayId = @"22222";
}

- (NSString *)requestUrl {
    return @"message/client/updateClientInfo";
}



- (id)requestAppendArgument{
    
    AvoidNullString(self.clientWayName);
    AvoidNullString(self.clientWayType);
    AvoidNullString(self.contactPerson);
    AvoidNullString(self.invoice);
    AvoidNullString(self.taxpayerId);

    
     return @{
                @"clientWayName":self.clientWayName,
                @"clientWayType":self.clientWayType,
                @"contactPerson":self.contactPerson,
                @"contactNumber":@(self.contactNumber),
                @"contactAddress":self.contactAddress,
                @"invoice":self.invoice,
                @"taxpayerId":self.taxpayerId,
                @"clientWayId":self.clientWayId,

       };
}

@end
